package com.itheima.sh.d_method_04;

import java.util.Scanner;
public class sss {
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        System.out.println("请输入您的数字：");
        int i = sc.nextInt();
        if(i>=100&&i<=999){
            int ge=i%10;
            int shi=i/10%10;
            int bai=i/100%10;
            if(ge*ge*ge+shi*shi*shi+bai*bai*bai==i){
                System.out.println("是水仙花数");
            }else{
                System.out.println("不是水仙花数");
            }
        }

    }
}
